package com.zkq.life;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhangkakaiqiang
 * @version 1.0.0
 * @Description TODO
 * @createTime 2021-12-21
 */
@Configuration
@ComponentScan("com.zkq.life")
public class LifecycleSourceConfiguration {

    @Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
    public Person person() {
        Person person = new Person();
        person.setName("lisi");
        return person;
    }
}
